--- squashfs4.2/squashfs-tools/pseudo.c
+++ squashfs4.2/squashfs-tools/pseudo.c
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 
 #include "pseudo.h"
